package com.bdqn.t382.practice;


public class Employee {
    private String name;
    private int age;
    private String position;

    // 构造方法
    public Employee(String name, int age, String position) {
        this.name = name;
        this.age = age;
        this.position = position;
    }

    public Employee() {
    }

    // Getter 和 Setter 方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    // 自我介绍方法
    public void introduce() {
        System.out.println("大家好，我是 " +position+"岗位的"+ name + "，今年 " + age + " 岁。" );
    }
}
